package com.example.mvc.context;

import com.example.common.utils.Statistics;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Slf4j
@Controller
public class MyController {

    private MyController(){
        Statistics.logInfo(log);
    }

    @GetMapping("/show-home")
    public String showHome(Model model) {
        Statistics.logInfo(log, "showHome", model);
        model.addAttribute("message", "1111");
        return "home";
    }

}
